﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nage.Algorithms.Solution;

namespace Nage.Examples.RastriginIsland.Topologies
{
    public class TopologyFactory<TSol> where TSol : ISolution
    {
        public ITopology<TSol> Create(TopologyType type)
        {
            switch (type)
            {
                case TopologyType.Circle:
                    return new CircleTopology<TSol>();
                default:
                    return null;
            }
        }

    }
}
